determination of cortical activity